﻿@using WD.Db.Contract;
@model User
@{
    ViewBag.Title = "WD.Db.Contract.User_Create";
    Layout = "~/Views/Shared/_LayoutEdit.cshtml";
}
<form id="User_mainForm" action="@Url.Action("Edit", "User")" method="POST">

    @Html.HiddenFor(model => model.ID)
    <div class="form-group col-xs-6 ">
        @Html.LabelFor(model => model.CreateTime, "CreateTime", new { @class = "" })

        <div class="input-group">
            <input class="form-control " role="date-picker" id="CreateTime" name="CreateTime" value="@Model.CreateTime" type="text" data-format="yyyy-mm-dd" />
            <span class="input-group-addon">
                <i class="fa fa-calendar"></i>
            </span>
        </div>
    </div>


    <div class="form-group col-xs-6 ">
        @Html.LabelFor(model => model.Name, "Name", new { @class = "" })

        @Html.TextBoxFor(model => model.Name, new { @class = "form-control" })
    </div>


    <div class="form-group col-xs-6 ">
        @Html.LabelFor(model => model.Type, "Type", new { @class = "" })

        @Html.TextBoxFor(model => model.Type, new { @class = "form-control" })
    </div>



    <div class="form-group col-xs-6 ">
        @Html.LabelFor(model => model.Pro, "Pro", new { @class = "" })

        @Html.TextBoxFor(model => model.Pro, new { @class = "form-control" })
    </div>


    <div class="form-group col-xs-6 ">
        @Html.LabelFor(model => model.City, "City", new { @class = "" })

        @Html.TextBoxFor(model => model.City, new { @class = "form-control" })
    </div>


    <div class="form-group col-xs-6 ">
        @Html.LabelFor(model => model.Dis, "Dis", new { @class = "" })

        @Html.TextBoxFor(model => model.Dis, new { @class = "form-control" })
    </div>


    <div class="form-group col-xs-6 ">
        @Html.LabelFor(model => model.InvBy, "InvBy", new { @class = "" })

        @Html.TextBoxFor(model => model.InvBy, new { @class = "form-control" })
    </div>


    <div class="form-group col-xs-6 ">
        @Html.LabelFor(model => model.CardId, "CardId", new { @class = "" })

        @Html.TextBoxFor(model => model.CardId, new { @class = "form-control" })
    </div>


    @*<div class="form-group col-xs-6 ">
        @Html.LabelFor(model => model.Balance, "Balance", new { @class = "" })

        @Html.TextBoxFor(model => model.Balance, new { @class = "form-control" })
    </div>*@



    <div class="form-group col-xs-6 ">
        @Html.LabelFor(model => model.userPhone, "userPhone", new { @class = "" })

        @Html.TextBoxFor(model => model.userPhone, new { @class = "form-control" })
    </div>


</form>

<div class="clearfix"></div>

<script>

    function UserCheckField() {
        //TODO 检查字段必填项 必须有返回值（成功TRUE,失败FALSE）

        return true;
    }

</script>
